package com.barneyx.mshinfoplatform.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum EUserState implements IEnum<String> {
    //当前账号已经锁定
    LOCK(1,"LOCK"),
    //正常状态
    NONE(2,"NONE"),
    //黑名单
    BLACKLIST(3,"BLACKLIST")
    ;

    EUserState(int code,String value){
        this.code = code;
        this.value = value;
    }

    @EnumValue
    private final int code;
    @JsonValue
    private final String value;
}
